<template>
  <div class="wrapper">
    <div class="login">
      <div class="login-head">
        智能寄存柜
      </div>
      <div class="login-box">
        <div class="login-line">
          <span class="icon icon-user"></span>
          <input class="input input-text" type="text" placeholder="账号" v-model="account">
        </div>
        <div class="login-line">
          <span class="icon icon-lock"></span>
          <input class="input input-text" type="password" placeholder="密码" v-model="pwd">
          <font color="red" id="error" class="error">密码为8-20位，必须包含数字、字母</font>
        </div>
        <div class="login-line">
          <el-checkbox v-model="savePwd">记住密码</el-checkbox>
        </div>
        <div class="login-line">
          <input class="input input-btn" id="loginBtn" type="button" value="登录" @click="login">
        </div>
      </div>
    </div>
    <div class="footer">
      <div class="copyright">
        <p><span>版权所有©***** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 联系我们：service@****.com</span></p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      account: '',
      pwd: '',
      savePwd: false
    }
  },
  methods: {
    login () {
      console.log('login..')
    }
  }
}
</script>

<style lang="less">
#app{
  height: 100%;
  width: 100%;
}
.wrapper{
  width: 100%;
  height: 100%;
  position: relative;
  overflow-y: hidden;
  background: #e2e8ef;
  background-size: cover;
  .forgot{
    text-align: left;
    padding-left: 15px;
    display: block;
    color: #2c3e50;
    text-decoration:none;
  }
  .error{
    display: none;
  }
  .login{
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -200px;
    margin-top: -250px;
    &-head {
      margin-bottom: 5px;
      padding-left: 6px;
      font-size: 40px;
      padding-bottom: 15px;
      font-weight: bold;
      color: #1c333a;
    }
    &-box {
      width: 342px;
      height: 335px;
      padding: 50px 40px 20px;
      background: url(../assets/images/login-box.png) 0 0 no-repeat;
      border-radius: 5px;
      -webkit-background-size: 100%;
      background-size: 100%;
    }
    .icon {
      display: inline-block;
      position: relative;
      top: 5px;
      width: 21px;
      height: 21px;
      margin-right: 15px;
    }
    .icon.icon-user {
      background: url(../assets/images/icon_user.png) 0 0 no-repeat;
    }
    .icon.icon-lock {
      background: url(../assets/images/icon_lock.png) 0 0 no-repeat;
    }
    &-line {
      margin-bottom: 15px;
      text-align: left;
      font-size: 16px;
      .is-checked {
        .el-checkbox__inner {
          background-color: #18A2C9;
          border-color: #18A2C9;
        }
        .el-checkbox__label {
          color: #18A2C9;
        }
      }
    }
    &-line:after, &-line:before {
      content: " ";
      display: table;
    }
    .input {
      display: inline-block;
      font-family: "Microsoft YaHei", sans-serif;
      &-text {
        width: 258px;
        height: 30px;
        font-size: 16px;
        line-height: 30px;
        padding-left: 20px;
        padding-right: 20px;
        border-radius: 3px;
        border: 1px solid #8BD5FF;
      }
      &-btn {
        width: 342px;
        height: 42px;
        background-color: #18A2C9;
        border-radius: 4px;
        border: 1px solid #8BD5FF;
        color: #fff;
        font-size: 18px;
      }
    }
  }
  .footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100px;
    color: #666;
    font-weight: 400;
    .copyright {
      text-align: center;
    }
  }
}
</style>
